<?php
namespace SimplePhp\Cache;

/**
 *
 */
class LocalFileCacheCommon {
	public static function save($key, $data) {
		$data = [$key => $data];
		LocalFileCache::save($data);
	}
	public static function read($key) {
		if (empty($key)) {
			return LocalFileCache::read();
		}
		return LocalFileCache::read()[$key];
	}
}